<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-cn">
<head>
  <meta charset="utf-8">
  <title>首页</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <link rel="shortcut icon" th:href="@{/favicon.png}" type="image/x-icon">
  <link rel="stylesheet" type="text/css" th:href="@{/res/layui/css/layui.css}">
  <link rel="stylesheet" type="text/css" th:href="@{/res/adminui/dist/css/admin.css}">
  <script type="text/javascript" th:src="@{/res/layui/layui.js}"></script>
  <script type="text/javascript" th:src="@{/res/jquery/jquery.js}"></script>
</head>
<body class="layui-layout-body">

<div id="LAY_app">
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <!-- 头部区域 -->
      <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item layadmin-flexible" lay-unselect>
          <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
            <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
          </a>
        </li>
        <li class="layui-nav-item" lay-unselect>
          <a href="javascript:;" layadmin-event="refresh" title="刷新">
            <i class="layui-icon layui-icon-refresh-3"></i>
          </a>
        </li>
      </ul>
      <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
        <li class="layui-nav-item layui-hide-xs" lay-unselect>
          <a href="javascript:;" layadmin-event="theme" title="主题风格">
            <i class="layui-icon layui-icon-theme"></i>
          </a>
        </li>
        <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-unselect>
          <a href="javascript:;" layadmin-event="more"><i class="layui-icon layui-icon-more-vertical"></i></a>
        </li>
      </ul>
    </div>
    <!-- 侧边菜单 -->
    <div class="layui-side layui-side-menu">
      <div class="layui-side-scroll">
        <div class="layui-logo">
          <span style="font-weight:bold;">shiro</span>
        </div>
        <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
          <!--  一级菜单处理 -->
          <li th:each="menu,menuStat:${T(com.shadow.demo.shiro.controller.sys.SystemController).getMenuListNow()}" th:data-name="${menu.id}" class="layui-nav-item" th:classappend="${menuStat.index}==0 ? 'layui-nav-itemed':''">
            <a href="javascript:;" th:title="${menu.text}" th:lay-tips="${menu.text}" lay-direction="2">
              <i class="layui-icon" th:classappend="${menu.icon}"></i>
              <cite th:text="${menu.text}"></cite>
            </a>
            <!--  二级菜单处理 -->
            <dl class="layui-nav-child" th:if="${not #lists.isEmpty(menu.children)}">
              <dd th:each="submenu, submenuStat:${menu.children}" th:data-name="${submenu.id}" th:classappend="${submenuStat.index}==0 ? 'layui-this':''">
                <a th:lay-href="@{${submenu.link}}" th:if="${submenu.icon ne 'layui-icon-link'}" th:title="${submenu.text}" th:text="${submenu.text}"></a>
                <a th:href="@{${submenu.link}}" target="_blank" th:if="${submenu.icon eq 'layui-icon-link'}" th:title="${submenu.text}" th:text="${submenu.text}"></a>
                <!--  三级菜单处理 -->
                <dl class="layui-nav-child" th:if="${not #lists.isEmpty(submenu.children)}">
                  <dd th:each="thirdMenu:${submenu.children}" th:data-name="${thirdMenu.id}">
                    <a th:lay-href="@{${thirdMenu.link}}" th:if="${thirdMenu.icon ne 'layui-icon-link'}" th:title="${thirdMenu.text}" th:text="${thirdMenu.text}"></a>
                    <a th:href="@{${thirdMenu.link}}" target="_blank" th:if="${thirdMenu.icon eq 'layui-icon-link'}" th:title="${thirdMenu.text}" th:text="${thirdMenu.text}"></a>
                  </dd>
                </dl>
              </dd>
            </dl>
          </li>
        </ul>
      </div>
    </div>
    <!-- 页面标签 -->
    <div class="layadmin-pagetabs" id="LAY_app_tabs">
      <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
      <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
      <div class="layui-icon layadmin-tabs-control layui-icon-down">
        <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
          <li class="layui-nav-item" lay-unselect>
            <a href="javascript:;"></a>
            <dl class="layui-nav-child layui-anim-fadein">
              <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
              <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
              <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
            </dl>
          </li>
        </ul>
      </div>
      <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
        <ul class="layui-tab-title" id="LAY_app_tabsheader">
          <li lay-id="" lay-attr="" style="display: none"></li>
        </ul>
      </div>
    </div>
    <!-- 主体内容 -->
    <div class="layui-body" id="LAY_app_body">
      <div class="layadmin-tabsbody-item layui-show">

      </div>
    </div>
    <!-- 辅助元素，一般用于移动设备下遮罩 -->
    <div class="layadmin-body-shade" layadmin-event="shade"></div>
  </div>
</div>

<script type="text/javascript" th:inline="javascript">
    const contextPath = [[${#httpServletRequest.getContextPath()}]];
</script>
<script type="text/javascript">
    layui.config({
        base: 'res/' // 静态资源所在路径
    }).use(['index']);
</script>
</body>
</html>
